<script id="list-tpl" type="text/html"
        data-params='{"url":"/education/admin/address","dataName":"tagData","pageid":"#page", "method":"post"}'>
    <table id="example" class="layui-table lay-even" data-name="tagData" data-tplid="list-tpl">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check"
                                      lay-skin="primary"></th>
                <th>用户名</th>
                <th width="80">省</th>
                <th>市</th>
                <th>区县</th>
                <th>详细地址</th>
                <th>是否默认</th>
                <th>客户姓名</th>
                <th>客户电话</th>
                <th width="170">创建时间</th>
                <th width="100">操作</th>
            </tr>
        </thead>
        <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td><input type="checkbox" name="checkbox" value="{{ item.id}}" lay-skin="primary"></td>
                <td>{{ item.create_username }} </td>
                <td>{{ item.province_name }} </td>
                <td>{{ item.city_name }} </td>
                <td>{{ item.district_name }} </td>
                <td>{{ item.detail }} </td>
                <td>{{# if(item.is_default == 1){ }} 是 {{#  } else { }} 否  {{#  } }}</td>
                <td>{{ item.receiver }} </td>
                <td>{{ item.tel }} </td>
                <td>{{# if(item.create_time == null){ }} {{#  } else { }} {{ item.create_time}}  {{#  } }}</td>
                <td>
                    <button class="layui-btn layui-btn-mini" onclick="viewDetail('{{item.id}}');">
                        <i class="iconfont">&#xe653;</i>编辑
                    </button>
                </td>
            </tr>
            {{# }); }}
        </tbody>

    </table>
</script>